﻿using System.Collections.Generic;

namespace SPRepository
{
    public interface IRepository<TT, TD>
        where TT : IContentType<TD>, new()
        where TD : class, IContentTypeDto
    {
        IEnumerable<TD> GetAll();

        TD Get(int id);

        void Update(TD dto);

        void Delete(TD dto);
        void Delete(int id);
        void Delete(IEnumerable<TD> dtos);
    }
}